<?php
html::printPath(array('viAccomodationType.form-title' => 'admin/viAccomodationType/all', 'application.page-title-display' => ''));
$msg->printMessages();

echo html::entityInfoIcon('vi_accomodation_type', $viAccomodationType, 'code');
?>

<ul class="commandList">
    <li class="editLi"><?php echo html::anchor('admin/viAccomodationType/edit?code=' . $viAccomodationType['code'], text::get('viAccomodationType.editThis')) ?></li>
    <li class="deleteLi"><?php echo html::anchor('admin/viAccomodationType/delete?code=' . $viAccomodationType['code'], text::get('viAccomodationType.deleteThis'), array('onclick'=>'return confirmDeletion()')) ?></li>
</ul>

<?php
$fb = new FormBuilder('viAccomodationType', $viAccomodationType);
$fb->displayOnly();
$fb->text('code');
$fb->text('name');
$fb->textarea('description');
$fb->write();
